The TLookupReply Structure
You use theTLookupReply
structure to store information passed back to you by theOTLookupName
function (page 4-25). The information includes both a pointer to a buffer that contains registered entity names matching the criterion specified with theTLookupRequest
structure and the number of names found.The
TLookupReply
structure is defined by theTLookupReply
data type.
struct TLookupReply { TNetbuf names; UInt32 rspcount; }; typedef struct TLookupReply TLookupReply;Field descriptions
names
- A
TNetbuf
structure that specifies the size and location of a buffer into which theOTLookupName
function, on return, places the names it has found. You must allocate a buffer in which the replies are stored when the function returns; you must set thenames.buf
field to point to it; and you must set thenames.maxlen
field to the maximum size of the buffer.rspcount
- A long specifying the number of names found.